<?php $this->load->view('inc/header');?>
<div class="main-cont">
	<div class="b1"></div>

	<div class="opt-bar">
		<a class="wm-ajax" 
			href="<?php echo site_url('c=news&m=cat_add');?>"
			wmtitle="添加类别"
			wmw="300"
			wmh="120"
		>新建类别</a>
	</div>

	<div class="b1"></div>

	<table class="tbl-list" cellpadding="0" cellspacing="0">
		<thead>
			<tr>
				<th>类别标题</th>
				<th width="200">caozuo</th>
			</tr>
		</thead>
		<tbody>
			<?php foreach($list_cat as $k=>$v):?>
			<tr>
				<td>
					<?php for($i=0;$i<$v['step'];$i++):?>
					|____
					<?php endfor;?>
					<?php echo $v['title'];?>
				</td>
				<td>
					<a class="wm-ajax" 
						wmtitle="添加子类别"
						wmw="300"
						wmh="200"
						href="<?php echo site_url('c=news&m=cat_sub_add&id='.$v['id']);?>">添加子类别</a>
					<a class="btn-ajax-confirm" msg="确定 要删除吗?" href="<?php echo site_url('c=news&m=cat_del&id='.$v['id']);?>">del</a>
					<a class="wm-ajax" 
						wmtitle="编辑类别"
						wmw="300"
						wmh="200"
						href="<?php echo site_url('c=news&m=cat_edit&id='.$v['id']);?>">edit</a>
				</td>
			</tr>
			<?php endforeach;?>
		</tbody>
	</table>

</div>
<?php $this->load->view('inc/footer');?>


<script>$(function(){

});</script>

